﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for MessageBox
/// </summary>
public class MessageBox
{
	public  MessageBox()
	{
        
	}

    public static void Print(string ms, System.Web.UI.Page page)
    {

        page.Page.ClientScript.RegisterStartupScript(page.GetType(), "alert",
        "<script>alert('" + ms + "');</script>");
    }

    public static void Print(string ms, System.Web.UI.UserControl uc)
    {

        uc.Page.ClientScript.RegisterStartupScript(uc.GetType(), "alert",
        "<script>alert('" + ms + "');</script>");
    }
}